package com.guigu.www.erp.luolujin.service.Impl;

import com.guigu.www.erp.common.pojo.TAuthorization;
import com.guigu.www.erp.common.pojo.TRoleAuthorization;
import com.guigu.www.erp.luolujin.dao.TAuthorizationMapper;
import com.guigu.www.erp.luolujin.dao.TRoleAuthorizationMapper;
import com.guigu.www.erp.luolujin.service.LljAuthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LljAuthorServiceImpl implements LljAuthorService {
    @Autowired
    TRoleAuthorizationMapper mapper;
    @Autowired
    TAuthorizationMapper authorizationMapper;
    @Override
    public List<TRoleAuthorization> findThisAut(int roleId) {
        return mapper.findThisAut(roleId);
    }

    @Override
    public List<TAuthorization> findAll() {
        return authorizationMapper.findAll();
    }

    @Override
    public void deleteByAuthorId(Integer roleId) {
        mapper.deleteByAuthorId(roleId);
    }

    @Override
    public void insertSelective(TRoleAuthorization record) {
        mapper.insertSelective(record);
    }
}
